﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000353 RID: 851
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ContentPackageInfo : IMessage<ContentPackageInfo>, IMessage, IEquatable<ContentPackageInfo>, IDeepCloneable<ContentPackageInfo>, IBufferMessage
	{
		// Token: 0x17000B0E RID: 2830
		// (get) Token: 0x06002644 RID: 9796 RVA: 0x0006B8CD File Offset: 0x00069ACD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ContentPackageInfo> Parser
		{
			get
			{
				return ContentPackageInfo._parser;
			}
		}

		// Token: 0x17000B0F RID: 2831
		// (get) Token: 0x06002645 RID: 9797 RVA: 0x0006B8D4 File Offset: 0x00069AD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ContentPackageInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000B10 RID: 2832
		// (get) Token: 0x06002646 RID: 9798 RVA: 0x0006B8E6 File Offset: 0x00069AE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ContentPackageInfo.Descriptor;
			}
		}

		// Token: 0x06002647 RID: 9799 RVA: 0x0006B8ED File Offset: 0x00069AED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageInfo()
		{
		}

		// Token: 0x06002648 RID: 9800 RVA: 0x0006B8F5 File Offset: 0x00069AF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageInfo(ContentPackageInfo other) : this()
		{
			this.status_ = other.status_;
			this.contentId_ = other.contentId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002649 RID: 9801 RVA: 0x0006B926 File Offset: 0x00069B26
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageInfo Clone()
		{
			return new ContentPackageInfo(this);
		}

		// Token: 0x17000B11 RID: 2833
		// (get) Token: 0x0600264A RID: 9802 RVA: 0x0006B92E File Offset: 0x00069B2E
		// (set) Token: 0x0600264B RID: 9803 RVA: 0x0006B936 File Offset: 0x00069B36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ContentPackageStatus Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x17000B12 RID: 2834
		// (get) Token: 0x0600264C RID: 9804 RVA: 0x0006B93F File Offset: 0x00069B3F
		// (set) Token: 0x0600264D RID: 9805 RVA: 0x0006B947 File Offset: 0x00069B47
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ContentId
		{
			get
			{
				return this.contentId_;
			}
			set
			{
				this.contentId_ = value;
			}
		}

		// Token: 0x0600264E RID: 9806 RVA: 0x0006B950 File Offset: 0x00069B50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ContentPackageInfo);
		}

		// Token: 0x0600264F RID: 9807 RVA: 0x0006B95E File Offset: 0x00069B5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ContentPackageInfo other)
		{
			return other != null && (other == this || (this.Status == other.Status && this.ContentId == other.ContentId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002650 RID: 9808 RVA: 0x0006B99C File Offset: 0x00069B9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Status != ContentPackageStatus.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.ContentId != 0U)
			{
				num ^= this.ContentId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002651 RID: 9809 RVA: 0x0006B9FA File Offset: 0x00069BFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002652 RID: 9810 RVA: 0x0006BA02 File Offset: 0x00069C02
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002653 RID: 9811 RVA: 0x0006BA0C File Offset: 0x00069C0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ContentId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.ContentId);
			}
			if (this.Status != ContentPackageStatus.None)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002654 RID: 9812 RVA: 0x0006BA68 File Offset: 0x00069C68
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Status != ContentPackageStatus.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.ContentId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ContentId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002655 RID: 9813 RVA: 0x0006BAC0 File Offset: 0x00069CC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ContentPackageInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Status != ContentPackageStatus.None)
			{
				this.Status = other.Status;
			}
			if (other.ContentId != 0U)
			{
				this.ContentId = other.ContentId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002656 RID: 9814 RVA: 0x0006BB10 File Offset: 0x00069D10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002657 RID: 9815 RVA: 0x0006BB1C File Offset: 0x00069D1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Status = (ContentPackageStatus)input.ReadEnum();
					}
				}
				else
				{
					this.ContentId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000F60 RID: 3936
		private static readonly MessageParser<ContentPackageInfo> _parser = new MessageParser<ContentPackageInfo>(() => new ContentPackageInfo());

		// Token: 0x04000F61 RID: 3937
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000F62 RID: 3938
		public const int StatusFieldNumber = 11;

		// Token: 0x04000F63 RID: 3939
		private ContentPackageStatus status_;

		// Token: 0x04000F64 RID: 3940
		public const int ContentIdFieldNumber = 10;

		// Token: 0x04000F65 RID: 3941
		private uint contentId_;
	}
}
